﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using LGCourt.Logic.BLL;

namespace lgweb.user
{
    public partial class AccountActivation : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            string type = string.IsNullOrEmpty(Request.QueryString["type"]) ? "" : Request.QueryString["type"];
            string card = string.IsNullOrEmpty(Request.QueryString["card"]) ? "" : Request.QueryString["card"];
            string smobile = this.txtMobile.Value;
            string spwd = this.txtUserPWD.Value;

            UserInfo bll = new UserInfo();

            bool result = (bool)bll.ActiveUser(0, card,smobile);

            if (result)
            {
                this.tdMessages.InnerHtml = "激活帐号成功，请点击 [<a href='/user/login.aspx'>用户登录</a>] 进入当事人通道！";
                //Response.Redirect("/user/index.aspx");
            }
            else
            {
                this.tdMessages.InnerHtml = "激活帐号失败！";
            }
        }
    }
}